[fix]: code evaluator code editor issues#4715
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a ChangesConfigurable sticky header top offset
Code editor paste fix and animation suppression
Sequence Diagram(s)sequenceDiagram
participant User
participant SharedEditorImpl
participant pasteUtils
participant LexicalEditor
User->>SharedEditorImpl: paste into code editor
SharedEditorImpl->>pasteUtils: handleCodePaste(event, editor)
pasteUtils->>LexicalEditor: read trailingLine.getTextContent() → trailingLineTexts[]
pasteUtils->>LexicalEditor: remove trailing nodes, insert pasted lines
loop each captured trailing text
pasteUtils->>LexicalEditor: $createNodeForLineWithTabs(text, language)
LexicalEditor-->>pasteUtils: fresh line node
pasteUtils->>LexicalEditor: insertAfter(fresh line node)
end
LexicalEditor-->>SharedEditorImpl: updated editor state (no height transition for codeOnly)
SharedEditorImpl-->>User: rendered code with trailing content preserved
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 3853b3ae-658a-4555-b15e-a63569068124
📒 Files selected for processing (4)
web/oss/src/components/Playground/Components/PlaygroundVariantConfig/index.tsxweb/packages/agenta-entity-ui/src/DrillInView/components/PlaygroundConfigSection.tsxweb/packages/agenta-ui/src/Editor/plugins/code/utils/pasteUtils.tsweb/packages/agenta-ui/src/SharedEditor/SharedEditorImpl.tsx
Railway Preview Environment
|
closes #4641